package com.weboosttools.assist

import androidx.compose.animation.AnimatedVisibility
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.material.Button
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Scaffold
import androidx.compose.material.Text
import androidx.compose.runtime.*
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import com.weboosttools.assist.view.SupervisedMemoryCard
import org.jetbrains.compose.ui.tooling.preview.Preview

@Composable
@Preview
fun App() {
    MaterialTheme {

        // scaffold
        Scaffold(
            topBar = {
                // top bar
                Text("Compose App")
            }
        ) {
            // column
            Column(
                modifier = Modifier.fillMaxWidth(),
                horizontalAlignment = Alignment.CenterHorizontally
            ) {
                // image
//                Image(
//                    painter = painterResource(Res.drawable.ic_launcher_foreground),
//                    contentDescription = "Logo"
//                )
                // text
                SupervisedMemoryCard()
                // button
                Button(onClick = { /*TODO*/ }) {
                    Text("Click me")
                }
                // animated visibility
                AnimatedVisibility(visible = true) {
                    Text("I'm visible.")
                }
            }
        }
    }
}